package com.example.unisys.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.unisys.entity.StuChsCourse;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface StuChsCourseMapper extends BaseMapper<StuChsCourse> {

    int insert(StuChsCourse stuchscourse);

    int insertSelective(StuChsCourse stuchscourse);


    List<StuChsCourse> getOverCourse(@Param("exam_id")long exam_id);

    List<StuChsCourse> getCourse(@Param("exam_id")long exam_id);

    StuChsCourse isStuCourse(@Param("exam_id")long exam_id,@Param("course_id")String course_id);

    int updateStatus(@Param("exam_id")long exam_id, @Param("course_id")String course_id);
}
